package com.cy.detectsys.constant;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: cy
 * @date: 2024/4/6 18:07
 * @description:
 */
@Configuration
@ConfigurationProperties(prefix = "wx.auth")
public class Wxproperties {

    /**
     * 小程序appId
     */
    public static String appId;

    /**
     * 小程序密钥
     */
    public static String secret;

    public void setPicpath(String picpath) {
        Wxproperties.picpath = picpath;
    }

    /**
     * 生成的二维码地址
     */
    public static String picpath;

    /**
     * 小程序授权登录页面
     */
    public static String authpage;


    /**
     * 小程序  线下面试填写信息页面
     */
    public static String offlineLoginPage;



    public void setAppId(String appId) {
        Wxproperties.appId = appId;
    }

    public void setSecret(String secret) {
        Wxproperties.secret = secret;
    }

    public void setAuthpage(String authpage) {
        Wxproperties.authpage = authpage;
    }



    public void setOfflineLoginPage(String offlineLoginPage) {
        Wxproperties.offlineLoginPage = offlineLoginPage;
    }
}
